EMT Practice Test

1. Question Content...


Question List

Question1: What is the difference between the commands test -e path and test -f path?

Question2: Which of the following commands gets the GnuPG public key with the id 63B4835B from the keyserver example.com?

Question3: After issuing:
function myfunction { echo $1 $2 ; }
in Bash, which output does:
myfunction A B C
Produce?

Question4: Which configuration file would be edited to change default options for the OpenSSH server?

Question5: Which of the following actions prevents a specific user form scheduling tasks using at or batch?

Question6: How does the ping command work by default?

Question7: Which command is used to set restrictions on the size of a core file that is created for a user when a program crashes?

Question8: Which of the following commands pauses the Cups printer LaserPrinter?

Question9: Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?

Question10: What is true about groups in a Linux system? (Choose two correct answers.)

Question11: Why should an NTP client maintain connections to several NTP servers?

Question12: Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)

Question13: Which file contains the date of the last change of a user's password?

Question14: Which of the following commands prints the exit value of the most recently executed program in Bash?

Question15: What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?

Question16: Which of the following details can be found in an entry of a user specific crontab? (Choose two correct answers.)

Question17: What is true about the ntpdate command?

Question18: What is true regarding public and private SSH keys? (Choose two correct answers.)

Question19: Which of the following commands can modify or set the password expiration for a user? (Choose two correct answers.)

Question20: On a machine running several X servers, how are the different instances of the X11 server identified?

Question21: In order to discover the link layer address of the device that owns a specific IPv4 or IPv6 address, which mechanism is used?

Question22: Which of the following commands creates a function in Bash that outputs the sum of two numbers?

Question23: Which Bash option prevents a user from accidentally overwriting a file with a ">"?

Question24: Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)

Question25: Which of the following commands puts the output of the command date into the shell variable mydate?

Question26: What is NOT contained in the locale setting of the operating system?

Question27: What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.)

Question28: Which of the following commands is used to rotate, compress, and mail system logs?

Question29: Which of the following commands can remove a user from a group?

Question30: With syslog, what is a facility?

Question31: When trying to unmount a device it is reported as being busy. Which of the following commands could be used to determine which process is causing this?

Question32: Which of the following fields can be found in the /etc/group file? (Choose THREE correct answers.)

Question33: Which of the following are syslog facilities? (Choose TWO correct answers.)

Question34: Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)

Question35: What happens if the password of a user in the /etc/shadowfile is prepended with the ! character?

Question36: What is true regarding the time in a Linux system?

Question37: What is the purpose of a screen reader?

Question38: What is true about the file /etc/localtime?

Question39: What output will the following command sequence produce?
echo '1 2 3 4 5 6' | while read a b c; do
echo result: $c $b $a;
done

Question40: What is true regarding the command sendmail?

Question41: How is a display manager started?

Question42: Which of the following commands lists all queued print jobs?

Question43: Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)

Question44: Which command can be used to delete a group from a Linux system?

Question45: Which of the following statements is valid in the file /etc/resolv.conf?

Question46: Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Choose THREE correct answers.)

Question47: Which file, when using Sendmail or a compatible MTA system, will allow a user to redirect all of their mail to another address and is configurable by the user themselves?
/etc/alias

Question48: Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a source for host name lookups? (Choose TWO correct answers.)

Question49: On a regular users workstation the route command takes a long time before printing out the routing table.
Which of the following errors does that indicate?

Question50: What is a purpose of an SSH host key?

Question51: Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

Question52: Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)

Question53: Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?

Question54: Which of the following are operators used for comparison by the test command? (Choose two correct answers.)

Question55: Given the following routing table:

How would an outgoing packet to the destination 192.168.2.150 be handled?

Question56: Which of the following is a valid IPv6 address?

Question57: Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing? (Choose THREE correct answers.)

Question58: Which of the following details is NOT provided in any output from the netstat utility?

Question59: What is true regarding the statement beginning with #! That is found in the first line of a script?

Question60: Which of the following resources can be directly limited for a given user using ulimit? (Choose three correct answers.)

Question61: Why should a regular user edit his personal crontab by using the command crontab instead of just editing his crontab file manually?

Question62: Which of the following steps prevents a user from obtaining an interactive login session?

Question63: What is the purpose of the xhost program?

Question64: Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)

Question65: Which of the following lines are valid in the file /etc/hosts? (Choose TWO correct answers.)

Question66: Which of the following commands shows the current color depth of the X Server?

Question67: Which file inside the CUPS configuration directory contains the definition of the printers?

Question68: Why is the correct configuration of a system's time zone important?

Question69: Which of the following tools used for DNS debugging, reports not only the response from the name server but also details about the query?

Question70: What is the purpose of the iconv command?

Question71: Which of the following is true about IPv6?

Question72: For accessibility assistance, which of the following programs is an on-screen keyboard?

Question73: Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?

Question74: In case neither cron.allow nor cron.deny exist in /etc/, which of the following is true?

Question75: Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?

Question76: Which of the following files is consulted when programs like netstat try to match port numbers to names?

Question77: What is true regarding the file ~/.forward?

Question78: Which of the following find commands will print out a list of files owned by root and with the SUID bit set in / usr?

Question79: Which of the following commands can be used to display the local routing table? (Choose TWO correct answers.)

Question80: To prevent a specific user from scheduling tasks with at, what should the administrator do?

Question81: Each entry in a crontab must end with what character?

Question82: Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?

Question83: Which of the following may occur as a consequence of using the command ifconfig? (Choose THREE correct answers.)

Question84: What output will the following command produce?
seq 1 5 20

Question85: Where are user specific crontabs stored?

Question86: Which of the following commands can be used to limit the amount of memory a user may use?

Question87: How can the existing environment variable FOOBAR be suppressed for the execution of the script./ myscript only?

Question88: Which of the following is a legacy program provided by CUPS for sending files to the printer queues on the command line?

Question89: What is the main difference between the batchand atcommands?

Question90: What is the purpose of the file /etc/profile?

Question91: Which of the following commands can be used to associate open TCP ports with the processes that opened the ports?

Question92: Which of the following parameters are used for journalctl to limit the time frame of the output? (Choose TWO correct answers.)

Question93: When issuing the command ifconfig eth0 192.168.1.20/24up, which of the following happens?
(Choose two correct answers.)

Question94: Which of the following is observed and corrected by a NTP client?

Question95: What of the following can be done by the command ifconfig? (Choose TWO correct answers.)

Question96: Given the following routing table:

Why does the command route add default gw 192.168.1.1fail?

Question97: Which of the following files assigns a user to its primary group?

Question98: Which command will set the local machine's timezone to UTC?

Question99: When the command echo $$ outputs 12942, what is the meaning of 12942?

Question100: What is the purpose of the dig command?

Question101: Which of the following statements is valid in the file /etc/nsswitch.conf?

Question102: Which of the following programs can be used to determine the routing path to a given destination?

Question103: What is true regarding a default route?

Question104: Which of the following tasks can be accomplished using the command date? (Choose TWO correct answers.)

Question105: Which of the following fields are available in both the global /etc/crontab file as well as in user-specific crontab files? (Select TWO correct answers)

Question106: What is the purpose of the command mailq?

Question107: What is true regarding TCP port 23?

Question108: Which of the following are valid IPv4 network masks? (Choose two correct answers.)